package kr.ac.mju.mdc.mjuapp.information;

import kr.ac.mju.mdc.mjuapp.R;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class InformationViewActivity extends Activity implements View.OnClickListener {
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	
	    // TODO Auto-generated method stub
	    setContentView(R.layout.inforamtion_layout);
	    
        ((TextView)findViewById(R.id.team_1)).setPaintFlags(
        		((TextView)findViewById(R.id.team_1)).getPaintFlags() + Paint.FAKE_BOLD_TEXT_FLAG);
        ((TextView)findViewById(R.id.team_2)).setPaintFlags(
        		((TextView)findViewById(R.id.team_2)).getPaintFlags() + Paint.FAKE_BOLD_TEXT_FLAG);

        ((Button)findViewById(R.id.releaseNote_btn)).setOnClickListener(this);
        ((Button)findViewById(R.id.dev_history_btn)).setOnClickListener(this);
        ((Button)findViewById(R.id.version_info)).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.releaseNote_btn:	
			intent = new Intent(InformationViewActivity.this, ReleaseNoteListViewActivity.class);
			break;
		case R.id.dev_history_btn:
			intent = new Intent(InformationViewActivity.this, DeveloperHistoryListViewActivity.class);
			break;
		case R.id.version_info:
			intent = new Intent(InformationViewActivity.this, VersionInformationViewActivity.class);
			break;
		default:
			break;
		}
		
		if (intent != null) {
			startActivity(intent);
		}
	}
}
/* end of file */